package com.example.cloud.biz.event;

import com.example.cloud.domain.model.user.UserInfo;
import org.springframework.context.ApplicationEvent;

public class UserEvent extends ApplicationEvent {

    private UserInfo userInfo;
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public UserEvent(Object source, UserInfo userInfo) {
        super(source);
        this.userInfo = userInfo;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
}
